﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Script.Services;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace JForms
{
    public partial class Default : MvcController
    {
        protected override void MvcPage_Load(object sender, EventArgs e)
        {

        }

        [WebMethod]
        public static ReturnView MyMethod(View postData)
        {
            postData.MyTextBox = "textbox updated";
            postData.MyLabel = "label updated";

            return postData.Updated;
        }

        public class View : MvcView
        {
            public string MyTextBox { get { return Get<string>("MyTextBox"); } set { Set<string>("MyTextBox", value); } }
            public string MyLabel { get { return Get<string>("MyLabel"); } set { Set<string>("MyLabel", value); } }
        }
    }
}